<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="common/top" />
{/*
<link href="http://5wallpaper-img.a.com/css/style.css" rel="stylesheet" type="text/css" />
*/}
<script type="text/javascript">
function swap_tab(name,cls_show,cls_hide,count,cur){
    for(i=1;i<=count;i++){
		if(i==cur){
			 $('#div_'+name+'_'+i).show();
			 $('#tab_'+name+'_'+i).attr('class',cls_show);
		}else{
			 $('#div_'+name+'_'+i).hide();
			 $('#tab_'+name+'_'+i).attr('class',cls_hide);
		}
	}
}
</script>
</head>
<body>
<include file="common/header" />
<div class="wrap">
	<div class="lead">You are here: <a href="/">5wallpaper.com</a> &gt; <h1>free mobile wallpapers download</h1></div>
	
	<div class="content m_t15">
		<div class="leftbar">
			<include file="common/left" />
		</div>
		<div class="rightbar">
			<div class="show_box1">
				<div class="tit">
					<?php foreach($tops as $k=>$v){ ?>
					<a href="<?php echo $v['url'];?>"<?php if($k==0){ echo " class='now'";} ?> id="<?php echo "tab_top_".($k+1);?>" onmouseover="swap_tab('top','now','','<?php echo count($tops);?>','<?php echo $k+1;?>')"><?php echo $v['name'];?></a>
					<?php } ?>
				</div>
				<?php foreach($tops as $k=>$v){ $row = array_shift($v['lists']); ?>
				<div id="<?php echo "div_top_".($k+1);?>" class="pic_box"<?php if($k!=0){ echo " style='display:none'";} ?>>
					<ul class="list1">
						<li><a href="<?php echo $row['view_url'];?>"><img src="<?php echo $row['img_480_360'];?>" /></a></li>
						<li class="bg"><span class="f_right">Added:<?php echo date('Y-m-d',$row['addtime']);?></span>Downloads:<?php echo $row['download'];?> </li>
						<li class="t_r"> <a href="<?php echo $row['cat2_url'];?>">&gt;&gt; See More <?php echo $row['cat2_name'];?> wallpaper</a></li>
					</ul>
					<ul class="list2">
						<?php foreach($v['lists'] as $k2=>$v2){ ?>
						<li><a href="<?php echo $v2['view_url'];?>"><?php echo $v2['name'];?></a></li>
						<?php } ?>
						<li class="more"> <a href="<?php echo $v['url'];?>">&gt;&gt; More <?php echo $v['name'];?></a></li>
					</ul>
					<div class="clear"></div>
				</div>
				<?php } ?>
			</div>
			<div class="show_box2">
				<?php 
				$row1 = array_shift($list_t3);
				$row2 = array_shift($list_t3);
				$row3 = array_shift($list_t3);
				?>
				<div class="gg1"><a href="<?php echo $row1['view_url'];?>"><img src="<?php echo $row1['img_480_360'];?>" width="300" height="244" /></a></div>			
				<div class="f_left"><a href="<?php echo $row2['cat2_url'];?>"><img src="<?php echo $row2['img'];?>" width="135" height="95" /></a></div>
				<div class="f_right"><a href="<?php echo $row3['cat2_url'];?>"><img src="<?php echo $row3['img'];?>" width="135" height="95" /></a></div>
			</div>
			<div class="clear"></div>

			
			<div class="big_tit" style="margin-top:20px;">
				<h2><span>New Wallpapers</span></h2>
				{/*<div class="f_right2"><a href="javascript:void(0)">More</a> | <a href="#">Britney</a> | <a href="#">Angelina Jolie</a></div>*/}
			</div>
			<div class="big_box">
				<ul>
					<?php foreach($list_news as $k=>$v){ ?>
					<li>
						<p><a href="<?php echo $v['cat2_url'];?>"><img src="<?php echo $v['img'];?>" width="160" height="120" /></a></p>
						<p><a href="<?php echo $v['cat2_url'];?>"><?php echo $v['name'];?></a></p>
					</li>
					<?php } ?>
					<div class="clear"></div>
				</ul>
			</div>

			
			<div class="big_tit m_t15">
				<h2><span>Recommend Wallpapers</span></h2>
			</div>
			<div class="big_box">
				<ul>
					<?php foreach($list_recommend as $k=>$v){ ?>
					<li>
						<p><a href="<?php echo $v['cat2_url'];?>"><img src="<?php echo $v['img'];?>" width="160" height="120" /></a></p>
						<p><a href="<?php echo $v['cat2_url'];?>"><?php echo $v['name'];?></a></p>
					</li>
					<?php } ?>
					<div class="clear"></div>
				</ul>
			</div>
			<div class="big_tit m_t15">
				<h2><span>Hot Wallpapers</span></h2>
			</div>
			<div class="big_box">
				<ul>
					<?php foreach($list_hots as $k=>$v){ ?>
					<li>
						<p><a href="<?php echo $v['cat2_url'];?>"><img src="<?php echo $v['img'];?>" width="160" height="120" /></a></p>
						<p><a href="<?php echo $v['cat2_url'];?>"><?php echo $v['name'];?></a></p>
					</li>
					<?php } ?>
					<div class="clear"></div>
				</ul>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>

<include file="common/footer" />

</body>
</html>
